module HazardDetext(
    input MeMRead_from_ID_EX,
    input [4:0] rt_from_ID_EX,
    input [4:0] rs_from_IF_ID, rt_from_IF_ID,
    output IFIDWait, PCwait, Detect_to_Control
);
wire Stall;
assign Stall = MeMRead_from_ID_EX
             &((rt_from_ID_EX==rs_from_IF_ID)|(rt_from_ID_EX==rt_from_IF_ID));

assign IFIDWait = (Stall)? 1'b1:1'b0;
assign PCwait = (Stall)? 1'b1:1'b0;     
assign Detect_to_Control = (Stall)? 1'b1:1'b0;
endmodule